package com.hq.ims.data.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import com.hq.mybatis.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * jiang bai ping
 *
 * @Email 526666031@qq.com
 * @Detail APP推送内容
 */
@Data
@Alias("AppPushContent")
@TableName(value = "app_push_content")
@ApiModel(value = "APP推送内容")
public class AppPushContent extends BaseModel<AppPushContent> implements Serializable {

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "`app_push_content_id`", type = IdType.ASSIGN_UUID)
    private String appPushContentId;

    @ApiModelProperty(value = "消息标题")
    @TableField(value = "`title`")
    private String title;

    @ApiModelProperty(value = "消息内容")
    @TableField(value = "`body`")
    private String body;

    @ApiModelProperty(value = "自定义Json串")
    @TableField(value = "`extras`")
    private String extras;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "`create_date_time`", fill = FieldFill.INSERT)
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createDateTime;
}
